We only need a callback on the last animated actor, so no need to
register the callback for all actors.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/678
scale_y: 1,
duration: ANIMATION_TIME_IN,
mode: Clutter.AnimationMode.EASE_IN_OUT_QUAD,
- delay,
- onComplete: () => {
- if (isLastItem)
- this._animationDone();
- }
+ delay
};
+
+ if (isLastItem)
+ movementParams.onComplete = this._animationDone.bind(this);
+
fadeParams = {
opacity: 255,
duration: ANIMATION_FADE_IN_TIME_FOR_ITEM,
scale_y: scaleY,
duration: ANIMATION_TIME_OUT,
mode: Clutter.AnimationMode.EASE_IN_OUT_QUAD,
- delay,
- onComplete: () => {
- if (isLastItem) {
- this._animationDone();
- }
- }
+ delay
};
+
+ if (isLastItem)
+ movementParams.onComplete = this._animationDone.bind(this);
+
fadeParams = {
opacity: 0,
duration: ANIMATION_FADE_IN_TIME_FOR_ITEM,